package cfca.paperless.client.servlet._6_ua;

import cfca.paperless.client.servlet.PaperlessConfig;
import cfca.paperless.client.servlet.PaperlessUaClient;
import cfca.paperless.client.util.GUID;

/**
 * <pre>
 * Modify Information:
 * Author       Date          Description
 * ============ ============= ============================
 * zf         2018年2月12日               证书信息验证
 * </pre>
 */
public class ValidateCertInfoTest01 {
    
   
 
    public static void main(String[] args) throws Exception {
 
        try {
            
            PaperlessUaClient clientBean = new PaperlessUaClient(PaperlessConfig.uaUrl, 10000, 60000);// 无纸化辅助接口的访问URL
            // 操作员编码
            String operatorCode = PaperlessConfig.operatorCode;
            String channelCode = PaperlessConfig.channelCode;
            
            String systemNo = GUID.generateId();
            String serialNo  = "10000000000000000000002000560252";
            String issuerDn = "CN=CFCA TEST OCA11,O=China Financial Certification Authority,C=CN";
            
            String result = clientBean.validateCertInfo(systemNo,serialNo,issuerDn,operatorCode,channelCode);
            
            System.out.println(result);
       
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

